package org.rpc.common;

import java.io.Serializable;

/**
 * @author tzf
 * @description: 服务地址实体类
 * @date: 2023/11/17 16:07
 */

public class URL implements Serializable {
    //主机名
    private String hostName;
    //端口
    private Integer port;
    //版本号
    private String version = "1.0";

    public URL(String hostName, Integer port, String version) {
        this.hostName = hostName;
        this.port = port;
        this.version = version;
    }

    public URL(String hostName, Integer port) {
        this.hostName = hostName;
        this.port = port;
    }

    public URL() {
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
